{include file="public/header"}
<div class="page-content">
    <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
        <div class="widget am-cf" style=" height: 600px;">
            <a href="{:url('Foods/selFoods')}">
                <i title="返回" class="iconfont"
                   style="font-size:2.5rem;float: left">&#xe697;</i></a>
                	<form class="stdform" action="doadd" method="post" enctype="multipart/form-data">
                        <div class="widget-body">
                            <fieldset>
                                <div class="widget-head am-cf">
                                    <div class="widget-title am-cf">新品上架</div>
                                </div>

                                <div class="layui-form-item">
                                    <label class="am-u-sm-3 am-u-lg-2 layui-form-label">美食名称 </label>
                                    <div class="am-u-sm-9">
                                        <input type="text" class="layui-input layui-input-inline" name="name"
                                               placeholder="美食名称" required>
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="am-u-sm-3 am-u-lg-2 layui-form-label">美食价格 </label>
                                    <div class="am-u-sm-9">
                                        <input type="text" class="layui-input layui-input-inline" name="price"
                                               placeholder="美食价格" required>
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="am-u-sm-3 am-u-lg-2 layui-form-label">排序方式 </label>
                                    <div class="am-u-sm-9">
                                        <input type="text" class="layui-input layui-input-inline" name="orderno"
                                               placeholder="排序方式" required>
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="am-u-sm-3 am-u-lg-2 layui-form-label">所属分类 </label>
                                    <div class="am-u-sm-9">
                                        <select name="cid" id="selection2" class="layui-input uniformselect"style="width: 200px">
                                            <option value="">请选择分类</option>
                                            {volist name="sdata" id="vo"}
                                                <option value="{$vo.id}">{$vo.sname}</option>
                                            {/volist}
                                        </select>
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="am-u-sm-3 am-u-lg-2 layui-form-label">美食图片</label>
                                    <div class="am-u-sm-9 ">
                                        <input type="file"name="pic"
                                               class="uniform-file am-btn am-radius"/>
                                    </div>
                                </div>
                                <div class="layui-form-item layui-form-text">
                                    <label class="am-u-sm-3 am-u-lg-2 layui-form-label">美食描述</label>
                                    <div class="am-u-sm-9 ">
                                  <textarea cols="80" rows="5" name="describe" style="resize:none;width:530px;"
                                            class="layui-textarea" placeholder="美食描述"></textarea>
                                    </div>
                                </div>
                                <div class="am-form-group stdformbutton">
                                    <div class="am-u-sm-9 am-u-sm-push-3 am-margin-top-lg">
                                        <button type="submit" class="j-submit am-btn am-btn-secondary">提交</button>
                                        <button type="reset" class="am-btn am-btn-default">重置</button>
                                    </div>
                                </div>
                            </fieldset>
                        </div>
                    </form>  
                </div>
            </div>
        </div>

</body>
</html>